/*
* @Title: 隐私设置
* @Created by: emiya
*/
<template>
	<view class="box">
		<comHeader :config="navConfig" />
		<view class="mainback">
			<view class="man">
				<view>
					<view class="big">隐私设置</view>
					<view class="tips">园内寻人时对其他人的位置授权</view>
				</view>
				<view>
					<switch color="#74C146" @change="switch2Change" />
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import uniIcon from "@/components/uni-icon/uni-icon.vue"
	export default {
		components: {
			uniIcon
		},
		data() {
			return {
				navConfig: {
					isFixed: false, //是否absolute布局
					comScroll:0,
					left: {

						isShowLeft: true,
						leftGobackColor: 'black', //左边返回icon颜色
					},
					mid: {
						isShowMid: true,
						text: '隐私设置',
						textColor: '#000'
					},
					right: {
						text: '',
						isShowRight: false,
						ico: '', //右侧图标地址
						isShowRightIco: '' //是否显示右侧图标
					}
				},
			}
		},
		methods: {
			switch1Change: function(e) {
				console.log('switch1 发生 change 事件，携带值为', e.target.value)
			},
			switch2Change: function(e) {
				console.log('switch2 发生 change 事件，携带值为', e.target.value)
			},
		},
	}
</script>

<style scoped>
	* {
		margin: 0;
		padding: 0;
	}

	.no-menu {
		margin-bottom: 0px;
	}

	.box {
		background-color: #F6F6F6;
		height: 100vh;
		font-size: 34upx;
	}

	.mainback {
		background: #FFFFFF;
		margin-top: 100upx;
	}

	.man {
		display: flex;
		justify-content: space-between;
		width: 90%;
		margin: auto;
		padding: 25upx 0upx;
		border-bottom: 1px solid #EEEEEE;
	}

	.mainback .man:last-child {
		border-bottom: 0upx solid #FFFFFF !important;
	}

	.setimga {
		width: 30upx;
		height: 50upx;
	}

	.padd {
		margin-top: 25upx;
	}

	.setbun {
		width: 100%;
		background-color: #FFFFFF;
		text-align: center;
		margin-top: 20upx;
		padding: 25upx 0px;
	}
	.big{
		font-size: 27upx;
	}

	.tips {
		font-size: 22upx;
		color: #999999;
		margin-top:20upx;
	}
</style>
